package cn.cqie.attendance.student.domian;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.Alias;

/**
 * @Author: xiehaodong
 * @Date: 2021/6/23 - 14:59
 * @Description: cn.cqie.attendance.student.domian
 * @version: 1.0
 */
@Data
@Accessors(chain = true)
@ApiModel(value="attachment", description="")
@Alias("attachment")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Attachment extends Model {
    /** 附件id */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 附件地址 */
    @ApiModelProperty(value = "附件地址")
    private String address;

     /*0 老师下发作业
     1 学生上传作业
     2 老师审批作业
     3 学生请假申请*/
     @ApiModelProperty(value = "0 老师下发作业\n" +
             "     1 学生上传作业\n" +
             "     2 老师审批作业\n" +
             "     3 学生请假申请")
    private int type;

    /** 请假id */
    @ApiModelProperty(value = "请假id")
    private Long leaveId;

    /** 作业id */
    @ApiModelProperty(value = "作业id")
    private Long homeworkId;

    /** 发布作业id */
    @ApiModelProperty(value = "发布作业id")
    private Long publishHomeworkId;




}
